//
//  MenuViewController.m
//  Bracelet
//
//  Created by jing zhao on 2/16/15.
//  Copyright (c) 2015 jing zhao. All rights reserved.
//

#import "MenuViewController.h"
#import "LogOnViewController.h"

#import "REFrostedViewController.h"
#import "UIViewController+REFrostedViewController.h"

@interface MenuViewController ()

@end

@implementation MenuViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)voidLogOn:(id)sender {
    
//        UINavigationController *navigationController = (UINavigationController *)self.frostedViewController.contentViewController;
//    LogOnViewController *logOnViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"LogOnViewController"];
//    navigationController.viewControllers = @[logOnViewController];
//     [self.frostedViewController hideMenuViewController];
}
- (IBAction)logOut:(id)sender {
    UINavigationController *navigationController = (UINavigationController *)self.frostedViewController.contentViewController;
    LogOnViewController *logOnViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"LogOnViewController"];
    navigationController.viewControllers = @[logOnViewController];
     [self.frostedViewController hideMenuViewController];
}
- (IBAction)cancel:(id)sender {
     [self.frostedViewController hideMenuViewController];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
